import http from '@/utils/http2.js'

//查询角色列表
export function queryRole() {
  return http.get("/api/role/query",{})
}

//新增角色
export function saveRole(data) {
  return http.post("/api/role/save",data)
}

//删除角色
export function deleteRole(id) {
  return http.delete("/api/role/delete",{id})
}

//修改角色
export function updateRole(data) {
  return http.put("/api/role/update",data)
}